package entry.page;

import source.kernel.Core;
import source.kernel.base.ExceptionHandler;
import source.kernel.controller.ControllerSupport;
import source.module.carousel.Carousel_application;
import source.module.carousel.Carousel_applicationdata;
import source.module.carousel.Carousel_host;

import javax.servlet.annotation.WebFilter;

/**
 * @author Hai Thomson
 */
@WebFilter(filterName = "CarouselController", urlPatterns = "/carousel/*")
public class CarouselController extends ControllerSupport {
	public void index() {
		try {
			Core.forward("/carousel/index.jsp");
		} catch (Exception e) {
			ExceptionHandler.handling(e);
		}
	}

	public void application() {
		try {
			Carousel_application.run();
		} catch (Exception e) {
			ExceptionHandler.handling(e);
		}
	}

	public void applicationdata() {
		try {
			Carousel_applicationdata.run();
		} catch (Exception e) {
			ExceptionHandler.handling(e);
		}
	}

	public void host() {
		try {
			Carousel_host.run();
		} catch (Exception e) {
			ExceptionHandler.handling(e);
		}
	}

}
